package org.xu.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
import org.xu.dao.AttachmentModelExtMapper;
import org.xu.entity.AttachmentModel;
import org.xu.service.AttachmentService;

import java.util.ArrayList;
import java.util.List;

@Service
public class AttachmentServiceImpl implements AttachmentService {
    @Autowired
    private AttachmentModelExtMapper mapper;

    @Override
    public List<AttachmentModel> listByApplyNos(List<String> applyNoList) {
        if (CollectionUtils.isEmpty(applyNoList)){
            return new ArrayList<>();
        }
        return mapper.listByApplyNos(applyNoList);
    }


}
